﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using System.Data;
namespace BUS
{
    public class CustomerBL
    {
        CustomerDAL dal = new CustomerDAL();
        #region[Customer_SelectALL]
        public List<DTO.CustomerDTO> Customer_SelectALL()
        {
            return dal.Customer_SelectALL();
        }
        #endregion

        #region[Customer_SelectByName]
        public List<DTO.CustomerDTO> Custummer_SelectByName(String name)
        {
            return dal.Custummer_SelectByName(name);
        }
        #endregion

        #region[Customer_SelectByID]
        public DTO.CustomerDTO Custummer_SelectByID(int id)
        {
            return dal.Custummer_SelectByID(id);
        }
        #endregion

        #region[Customer_SelectCustomerWithBillByBillID]
        public DataTable Customer_SelectCustomerWithBillByBillID(int id)
        {
            return dal.Customer_SelectCustomerWithBillByBillID(id);
        }
        #endregion

        #region[Customer_SelectCustomerWithBillByID]
        public DataTable Customer_SelectCustomerWithBillByID(int id)
        {
            return dal.Customer_SelectCustomerWithBillByID(id);
        }
        #endregion

        #region[Customer_SelectCustomerWithBillByName]
        public DataTable Customer_SelectCustomerWithBillByName(string name)
        {
            return dal.Customer_SelectCustomerWithBillByName(name);
        }
        #endregion

        #region [Customer_Insert]
        public bool Customer_Insert(DTO.CustomerDTO cus)
        {
            return dal.Customer_Insert(cus);
        }
        #endregion

        #region [Customer_Update]
        public bool Customer_Update(DTO.CustomerDTO cus)
        {
            return dal.Customer_Update(cus);
        }
        #endregion

        #region [Customer_Delete]
        public bool Customer_DeleteByID(DTO.CustomerDTO cus)
        {
            return dal.Customer_DeleteByID(cus);
        }
        #endregion
        
    }
}
